<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript" src="<%=basePath%>js/jquery-2.1.0.min.js"></script>
<script type="text/javascript" src="<%=basePath%>js/vue.min.js"></script>
<link rel="stylesheet" href="<%=basePath%>css/layui/css/layui.css">
<script type="text/javascript"
	src="<%=basePath%>js/chooseMaterial/chooseMaterial.js"></script>
<script type="text/javascript" src="<%=basePath%>js/BaseUtile.js"></script>

</head>
<body style="margin: 5%">

	<input id="materialList" style="display: none" />

	<div class="layui-input-inline">
			<div style="float: left">
				<input id="inputSearchWords" class="layui-input"
					placeholder="输入原料编码/名称搜索" />
			</div>
			<div style="float: left">
				<button id="searchMaterialButton" class="layui-btn layui-btn-fluid">搜索</button>
			</div>
		</div>

	<div id="showMaterial" style="margin-top: 3%">
		<ul>
			<li v-for="item in items">
				<div style="float: left;margin-left: 1%;font: bold;margin-top: 1%;">
					<button class="layui-btn layui-btn-primary"
						v-on:click="onclick(item)">{{ item.materialName}}</button>
				</div>
			</li>

		</ul>

	</div>







	<script type="text/javascript" src="<%=basePath%>css/layui/layui.js"></script>
	<script>
		layui.use('form', function() {

		});
	</script>
</body>
</html>